package cqrtplm.dto;

import com.ty.basic.utils.excel.annotation.ExcelModel;
import com.ty.basic.utils.excel.annotation.ExcelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

@Data
@ExcelModel
public class ImportEnumDTO {

    @ExcelProperty(
            index = 1,
            name ="枚举ID")
    private String enumID;

    @ExcelProperty(
            index = 1,
            name ="枚举值")
    private String enumValue;

    @ExcelProperty(
            index = 1,
            name ="枚举类型")
    private String enumType;

    @ExcelProperty(
            index = 6,
            name ="枚举层级")
    private String enumLevel;

    @ExcelProperty(
            index = 4,
            name ="父枚举ID")
    private String parentEnumID;

    @ExcelProperty(
            index = 5,
            name ="是否停用")
    private String isDeactivated;

    @ExcelProperty(
            index = 2,
            name ="隐藏描述")
    private String disableHide;

    @ExcelProperty(
            index = 3,
            name ="隐藏短名称")
    private String descriptionsHideShortName;


    public boolean isRowEmpty() {
        return (StringUtils.isNotBlank(this.enumID)
                &&StringUtils.isNotBlank(this.enumValue)
                &&StringUtils.isNotBlank(this.parentEnumID)
        );
    }
}
